<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>{$var_sysname}{$var_sysver}安装 - Powered By Weaverdream</title>
<link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon" />
<link rel="Bookmark" href="favicon.ico" type="image/x-icon" />
<link rel="Icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="../{$dir_css}/_public.css" type="text/css" media="screen" />
<script src="../lib/jquery/jquery.js" type="text/javascript"></script>
<script src="../lib/swfobject/swfobject.js" type="text/javascript"></script>
{$bwajax_printJavascript}
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#515151">

<div class="out_table">
<table width="100%" height="80" cellpadding="0" cellspacing="0" border="0" align="center" bgcolor="#222222">
  <tr>
    <td align="left"><img src="../{$dir_images}/logo_banner.gif" border="0"></td>
  </tr>
</table>
</div>

{if $install_lock == "1" && $get.finish != "finish"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td>安装程序被锁定</td>
  </tr>
  <tr>
    <td height="100" align="center" class="salient">
      安装程序被锁定, 可能您已经安装过, 如需再次安装请删除安装目录的 install.lock 文件!
    </td>
  </tr>
</table>
</div>
{elseif $get.act == "lisense"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>
    {$set.title}
    </td>
    <td align="right" nowrap>
      选择安装类型
      &raquo; <span class="salient">授权协议</span>
      &raquo; 检测目录权限
      &raquo; 填写设置信息
      &raquo; 开始安装
      &raquo; 安装完成
    </td>
  </tr>
</table>
</div>
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<form id="form_agree" name="form_agree" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td>授权协议</td>
  </tr>
  <tr>
    <td align="center">
      <div class="block_salient" style="width:600px;height:180px;padding:3px;overflow:auto;text-align: left;">
        <div align="center"><b>{$var_sysname}{$var_sysver} 介绍</b></div>
        {$install.introduction}
        <br /><br /><div align="center"><b>{$var_sysname}{$var_sysver} 授权协议</b></div>
        {$install.rule}
      </div>
    </td>
  </tr>
  <tr>
    <td align="center"><input type="checkbox" id="agree" name="agree" value="1" class="checkbox" />我已阅读并接受[<span class="salient">{$var_sysname}{$var_sysver} 授权协议</span>]<span id="agree_return" name="agree_return"><span class="prompt_primal"></span></span></td>
  </tr>
  <tr>
    <td align="center" class="block_footer">
      <input type="button" id="button_agree" name="button_agree" value="下一步" class="button"
         onclick="xajax.$('button_agree').disabled=true;
                  xajax.$('button_agree').value='请等待...';
                  xajax_agree_rule(xajax.getFormValues('form_agree'));" />
    </td>
  </tr>
</table>
</form>
</div>
{elseif $get.act == "check"}
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>
    {$set.title}
    </td>
    <td align="right" nowrap>
      选择安装类型
      &raquo; 授权协议
      &raquo; <span class="salient">检测目录权限</span>
      &raquo; 填写设置信息
      &raquo; 开始安装
      &raquo; 安装完成
    </td>
  </tr>
</table>
</div>
{if $result_check_dir != "1"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_salient">
  <tr>
    <td><img src="../{$dir_images}/icon_warning.gif" border="0" align="absmiddle" /> 请先修改下列高亮显示的目录属性为755再进行下一步操作!</td>
  <tr>
</table>
{/if}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td>检测目录权限</td>
  </tr>
  <tr>
    <td align="left">
    <ul>
      {foreach name=check_dir from=$check_dir item=item}
      <li>{if $item|is_writable == "1"}<span class="text_y">{$item} ... 可写</span>{else}<span class="text_n">{$item} ... 只读</span>{/if}</li>
      {/foreach}
    </ul>
    </td>
  </tr>
  <tr>
    <td>
      <input type="button" id="button_check" name="button_check" value="下一步" class="button" onclick="top.location.href='{$set.file_name}?act=input';" />
    </td>
  </tr>
</table>
</div>
{elseif $get.act == "input"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>
    {$set.title}
    </td>
    <td align="right" nowrap>
      选择安装类型
      &raquo; 授权协议
      &raquo; 检测目录权限
      &raquo; <span class="salient">填写设置信息</span>
      &raquo; 开始安装
      &raquo; 安装完成
    </td>
  </tr>
</table>
</div>
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<form id="form_input" name="form_input" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="3">填写设置信息</td>
  </tr>
  <tr class="block_title">
    <td colspan="3">数据库连接信息{$set.warn_input}</td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">数据库服务器:</td>
    <td width="35%" class="block_right"><input type="text" id="db_host" name="db_host" class="input" value="{$_session.db_host|default:'localhost'}" size="56" /></td>
    <td width="50%" class="block_right"><span id="db_host_return" name="db_host_return"><span class="prompt_primal">数据库服务器的主机地址,尽量使用IP</span></span></td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">数据库用户名:</td>
    <td width="35%" class="block_right"><input type="text" id="db_user" name="db_user" class="input" value="{$_session.db_user|default:'root'}" size="56" /></td>
    <td width="50%" class="block_right"><span id="db_user_return" name="db_user_return"><span class="prompt_primal">数据库连接的用户名</span></span></td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">数据库密码:</td>
    <td width="35%" class="block_right"><input type="password" id="db_pass" name="db_pass" class="input" size="56" /></td>
    <td width="50%" class="block_right"><span id="db_pass_return" name="db_pass_return"><span class="prompt_primal">数据库连接的密码</span></span></td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">数据库名称:</td>
    <td width="35%" class="block_right"><input type="text" id="db_database" name="db_database" class="input" value="{$_session.db_database}" size="56" /></td>
    <td width="50%" class="block_right"><span id="db_database_return" name="db_database_return"><span class="prompt_primal">数据库名称</span></span></td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">数据库表前缀:</td>
    <td width="35%" class="block_right"><input type="text" id="db_prefix" name="db_prefix" class="input" value="{$_session.db_prefix|default:'rs_'}" size="56" /></td>
    <td width="50%" class="block_right"><span id="db_prefix_return" name="db_prefix_return"><span class="prompt_primal">数据库表前缀</span></span></td>
  </tr>
  <tr class="block_title">
    <td colspan="3">网站信息</td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">前台控制文件目录:</td>
    <td width="35%" class="block_right"><input type="text" id="site_root" name="site_root" class="input" value="{$_session.site_root|default:$page_path.rootdir}" size="56" /></td>
    <td width="50%" class="block_right"><span id="site_root_return" name="site_root_return"><span class="prompt_primal">一般情况下请保留默认</span></span></td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">后台控制文件目录:</td>
    <td width="35%" class="block_right"><input type="text" id="site_root_admin" name="site_root_admin" class="input" value="{$_session.site_root_admin|default:$page_path.rootdir}" size="56" /></td>
    <td width="50%" class="block_right"><span id="site_root_admin_return" name="site_root_admin_return"><span class="prompt_primal">一般情况下请保留默认</span></span></td>
  </tr>
  <tr align="left">
    <td width="15%" class="block_left">Cookies前缀:</td>
    <td width="35%" class="block_right"><input type="text" id="site_cookie_prefix" name="site_cookie_prefix" class="input" value="{$_session.site_cookie_prefix|default:'robsofa_'}" size="56" /></td>
    <td width="50%" class="block_right"><span id="site_cookie_prefix_return" name="site_cookie_prefix_return"><span class="prompt_primal">一般情况下请保留默认</span></span></td>
  </tr>
  <tr>
    <td colspan="3" align="center" class="block_footer">
      <input type="button" id="button_input" name="button_input" value="下一步" class="button"
         onclick="xajax.$('button_input').disabled=true;
                  xajax.$('button_input').value='请等待...';
                  xajax_input_msg(xajax.getFormValues('form_input'));" />
    </td>
  </tr>
</table>
</form>
</div>
{elseif $get.act == "install"}
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>
    {$set.title}
    </td>
    <td align="right" nowrap>
      选择安装类型
      &raquo; 授权协议
      &raquo; 检测目录权限
      &raquo; 填写设置信息
      &raquo; <span class="salient">开始安装</span>
      &raquo; 安装完成
    </td>
  </tr>
</table>
</div>
{if $result_install_config != "1" || $result_install_sql != "1"}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_salient">
  <tr>
    <td><img src="../{$dir_images}/icon_warning.gif" border="0" align="absmiddle" /> 请根据提示检查您的安装环境再试!</td>
  <tr>
</table>
{/if}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td>开始安装</td>
  </tr>
  <tr>
    <td align="left">
    <ul>
      <li>{if $result_install_config == "1"}<span class="text_y">配置文件写入 ... 成功</span>{else}<span class="text_n">配置文件写入 ... 失败</span>{/if}</li>
      <li>{if $result_install_sql == "1"}<span class="text_y">数据库导入 ... 成功</span>{else}<span class="text_n">数据库导入 ... 失败</span>{/if}</li>
    </ul>
    </td>
  </tr>
  <tr>
    <td>
      <input type="button" id="button_install" name="button_install" value="返回重新填写信息" class="button" onclick="top.location.href='{$set.file_name}?act=input';" />
    </td>
  </tr>
</table>
</div>
{elseif $get.act == "finish"}
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>
    {$set.title}
    </td>
    <td align="right" nowrap>
      选择安装类型
      &raquo; 授权协议
      &raquo; 检测目录权限
      &raquo; 填写设置信息
      &raquo; 开始安装
      &raquo; <span class="salient">安装完成</span>
    </td>
  </tr>
</table>
</div>
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td>安装完成</td>
  </tr>
  <tr>
    <td><span class="text_y"><b>论坛安装成功完成!</b></span></td>
  </tr>
  <tr>
    <td align="left">
    <ul>
      <li>您已经成功完成论坛的升级, <span class="salient">为了网站安全请立刻删除install目录以及install/目录内所有文件!</span></li>
      <li>配置文件位于根目录的[config.php], 您随时可以手动修改其配置!</li>
      <li>登录后在页面顶部用户名旁边有[后台管理]的链接,您也可以通过[<a href="{$page_path.rootdir}admin.php" target="_blank">{$page_path.rootdir}admin.php</a>]来访问后台!</li>
      <li>升级安装时新增加的功能在用户组权限和管理员组权限中默认不启用,请第一时间进入后台设定相关组权限!</li>
      <li>欢迎使用 Weaverdream 产品, 使用中的任何问题可以通过[<a href="http://forum.weaverdream.com/" target="_blank">Weaverdream官方论坛</a>]咨询!</li>
    </ul>
    </td>
  </tr>
  <tr>
    <td><span class="text_y"><b>感谢您选择 Weaverdream 产品, 我们将致力于为您提供优质的互联网产品!</b></span></td>
  </tr>
  <tr>
    <td>
      <a href="{$page_path.rootdir}index.php" target="_blank"><b>[进入论坛]</b></a>
    </td>
  </tr>
</table>
</div>
{else}
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>
    {$set.title}
    </td>
    <td align="right" nowrap>
      <span class="salient">选择安装类型</span>
      &raquo; 授权协议
      &raquo; 检测目录权限
      &raquo; 填写设置信息
      &raquo; 开始安装
      &raquo; 安装完成
    </td>
  </tr>
</table>
</div>
<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<form id="form_agree" name="form_agree" method="post" action="javascript:void(null);" enctype="multipart/form-data">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td>选择安装类型</td>
  </tr>
  <tr>
    <td align="center">
      <div class="block_salient" style="width:600px;height:100px;padding:3px;overflow:auto;text-align: center;">
        <br /><br />
        <input type="button" id="button_install" name="button_install" value="全新安装" class="button" onclick="top.location.href='install.php?act=lisense';" />
        <br /><br />
        <input type="button" id="button_install" name="button_install" value="升级安装" class="button" onclick="top.location.href='upgrade.php?act=lisense';" />
      </div>
    </td>
  </tr>
</table>
</form>
</div>
{/if}

<div class="out_table"><div class="space"></div></div>
<div class="out_table">
  <div class="footer">
    Copyright &copy; <a href="http://www.weaverdream.com" target="_blank">www.weaverdream.com</a>. All Rights Reserved
    <!-- Copyright begin,You can't move this! -->
    <div align="center" class="poweredby">Powered by <a href="{$var_sysurl}" target="_blank">{$var_sysname}{$var_sysver}</a> &copy; 2003-{$smarty.now|date_format:"%Y"} <a href="http://www.weaverdream.com" target="_blank">www.weaverdream.com</a></div>
    <!-- Copyright end,You can't move this! -->
  </div>
</div>

</body>
</html>
